//
//  HELCourseContentCell.m
//  NursingAssociation
//
//  Created by wsj2015 on 2017/2/16.
//  Copyright © 2017年 wsj2015. All rights reserved.
//

#import "HELCourseContentCell.h"

@implementation HELCourseContentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(HELCourseContentModel *)model{
//  type 1 是视频    2 是PDF
    if ([model.type integerValue] == 1) {
        self.leftIcon.image =[UIImage imageNamed:@"视频 copy 4"];
    }else{
         self.leftIcon.image =[UIImage imageNamed:@"PDF_icon"];
    }
    self.titleL.text = model.fileName;
    
    if (model.isLook) {
        
    }
  
    
    
}

- (void)setIsAble:(BOOL)isAble{
    
    if (isAble) {
        self.rightIcon.image = [UIImage imageNamed:@"视频_可看 copy"];
       
    }else{
        self.rightIcon.image = [UIImage imageNamed:@"视频icon"];
    }
    
}


- (void)setExamInfor:(NSDictionary *)examInfor{
    if (!examInfor) {
        return;
    }
    self.leftIcon.image =  [UIImage imageNamed:@"考试 copy"];
   
    self.titleL.text = examInfor[@"title"]?examInfor[@"title"]:@"";

}

@end
